package com.thingcom.delinrobot.main.Launch.NewUser;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.thingcom.delinrobot.R;
import com.thingcom.delinrobot.base.BaseBackFragment;
import com.thingcom.delinrobot.view.SimpleToolbar;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

public class PrivacyAgreementFragment extends BaseBackFragment {

    @BindView(R.id.toolbar_privacy_agreement)
    SimpleToolbar toolbarPrivacyAgreement;
    private Unbinder unbinder;
    @BindView(R.id.tv_one)
    TextView tvOne;

    public static PrivacyAgreementFragment newInstance() {

        return new PrivacyAgreementFragment();
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_privacy_agreement, container, false);

        unbinder = ButterKnife.bind(this, view);
        toolbarPrivacyAgreement.setLeftIconClickListener(view1 -> pop());

        return view;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

}
